<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"wrr123.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
  </script>

  <meta name="description" content="在前端界面获取file元素的本地真实路径？ 背景：浏览器端出于对用户的安全考虑，是不会显示上传文件的真实路径的。 解决方案：  Wed Oct 30 09:30:15 CST 2019数组的sort(),是按照什么进行排序的？Fri Nov  8 17:07:49 CST 2019FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？Tue Nov  5 17:31:13">
<meta property="og:type" content="article">
<meta property="og:title" content="notebook-javaScript">
<meta property="og:url" content="https://wrr123.github.io/2020/08/16/notebook-javaScript/index.html">
<meta property="og:site_name" content="一缕烟气">
<meta property="og:description" content="在前端界面获取file元素的本地真实路径？ 背景：浏览器端出于对用户的安全考虑，是不会显示上传文件的真实路径的。 解决方案：  Wed Oct 30 09:30:15 CST 2019数组的sort(),是按照什么进行排序的？Fri Nov  8 17:07:49 CST 2019FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？Tue Nov  5 17:31:13">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-15T16:42:17.000Z">
<meta property="article:modified_time" content="2022-02-18T02:52:04.494Z">
<meta property="article:author" content="田园隐士">
<meta property="article:tag" content="notebook">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://wrr123.github.io/2020/08/16/notebook-javaScript/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>notebook-javaScript | 一缕烟气</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="一缕烟气" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">一缕烟气</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">沧海月明珠有泪，蓝田日暖玉生烟</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://wrr123.github.io/2020/08/16/notebook-javaScript/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="田园隐士">
      <meta itemprop="description" content="talk is cheap, show me the code">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一缕烟气">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          notebook-javaScript
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-08-16 00:42:17" itemprop="dateCreated datePublished" datetime="2020-08-16T00:42:17+08:00">2020-08-16</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-02-18 10:52:04" itemprop="dateModified" datetime="2022-02-18T10:52:04+08:00">2022-02-18</time>
              </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span><br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>1.9k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="在前端界面获取file元素的本地真实路径？"><a href="#在前端界面获取file元素的本地真实路径？" class="headerlink" title="在前端界面获取file元素的本地真实路径？"></a>在前端界面获取file元素的本地真实路径？</h2><ol>
<li>背景：浏览器端出于对用户的安全考虑，是不会显示上传文件的真实路径的。</li>
<li>解决方案：</li>
</ol>
<h1 id="Wed-Oct-30-09-30-15-CST-2019"><a href="#Wed-Oct-30-09-30-15-CST-2019" class="headerlink" title="Wed Oct 30 09:30:15 CST 2019"></a>Wed Oct 30 09:30:15 CST 2019</h1><h2 id="数组的sort-是按照什么进行排序的？"><a href="#数组的sort-是按照什么进行排序的？" class="headerlink" title="数组的sort(),是按照什么进行排序的？"></a>数组的sort(),是按照什么进行排序的？</h2><h1 id="Fri-Nov-8-17-07-49-CST-2019"><a href="#Fri-Nov-8-17-07-49-CST-2019" class="headerlink" title="Fri Nov  8 17:07:49 CST 2019"></a>Fri Nov  8 17:07:49 CST 2019</h1><h2 id="FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？"><a href="#FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？" class="headerlink" title="FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？"></a>FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？</h2><h1 id="Tue-Nov-5-17-31-13-CST-2019"><a href="#Tue-Nov-5-17-31-13-CST-2019" class="headerlink" title="Tue Nov  5 17:31:13 CST 2019"></a>Tue Nov  5 17:31:13 CST 2019</h1><h2 id="js中函数名称一样，参数个数不一样的话，算是不一样的函数吗？"><a href="#js中函数名称一样，参数个数不一样的话，算是不一样的函数吗？" class="headerlink" title="js中函数名称一样，参数个数不一样的话，算是不一样的函数吗？"></a>js中函数名称一样，参数个数不一样的话，算是不一样的函数吗？</h2><h2 id="在html文件中，两个js文件中，存在同名的函数，若先加载a-js，后加载b-js-那么哪个js文件中的函数起作用？"><a href="#在html文件中，两个js文件中，存在同名的函数，若先加载a-js，后加载b-js-那么哪个js文件中的函数起作用？" class="headerlink" title="在html文件中，两个js文件中，存在同名的函数，若先加载a.js，后加载b.js,那么哪个js文件中的函数起作用？"></a>在html文件中，两个js文件中，存在同名的函数，若先加载a.js，后加载b.js,那么哪个js文件中的函数起作用？</h2><h1 id="Thu-Nov-21-15-40-34-CST-2019"><a href="#Thu-Nov-21-15-40-34-CST-2019" class="headerlink" title="Thu Nov 21 15:40:34 CST 2019"></a>Thu Nov 21 15:40:34 CST 2019</h1><h2 id="jqgrid设置冻结列"><a href="#jqgrid设置冻结列" class="headerlink" title="jqgrid设置冻结列"></a>jqgrid设置冻结列</h2><ol>
<li>colModel中的列，添加<code>frozen属性为true</code></li>
<li>jqGrid中添加属性<code>shrinkToFit为false和autoScroll为true</code></li>
<li>jqgrid设置方法，<code>$jqGrid.jqGrid(&quot;setFrozenColumns&quot;)</code></li>
</ol>
<h3 id="2020-03-25-18-04-57-星期三"><a href="#2020-03-25-18-04-57-星期三" class="headerlink" title="2020-03-25 18:04:57 星期三"></a>2020-03-25 18:04:57 星期三</h3><h5 id="jQuery中trigger的使用"><a href="#jQuery中trigger的使用" class="headerlink" title="jQuery中trigger的使用"></a>jQuery中trigger的使用</h5><ul>
<li>trigger不可以直接触发 <strong>input(file)</strong> 、 <strong>select</strong> 的原生事件；</li>
<li>可以触发给元素添加的事件；</li>
<li>但是如果trigger外面包了一层 <strong>on（”click”）</strong> ,则可以触发  <strong>input(file)</strong> 、 <strong>select</strong> 的原生事件。</li>
<li>trugger触发某个元素的某个事件，首先得让那个元素把那个事件添加的函数提前执行；比如可以使用trigger做进入页面自动定位的功能，但是在触发trigger之前，必须确保触发元素的事件已经绑定上。</li>
<li><strong>fastclick.js</strong>会影响trigger的使用，出现第一次点击没有出现响应，第二次才起效果。</li>
</ul>
<h3 id="2020-03-26-13-37-45-星期四"><a href="#2020-03-26-13-37-45-星期四" class="headerlink" title="2020-03-26 13:37:45 星期四"></a>2020-03-26 13:37:45 星期四</h3><h5 id="jQuery-extend-target-object1-objectN"><a href="#jQuery-extend-target-object1-objectN" class="headerlink" title="jQuery.extend(target[, object1][, objectN])"></a><code>jQuery.extend(target[, object1][, objectN])</code></h5><p>描述：将两个或更多对象的内容合并到第一个对象。</p>
<h5 id="jQuery-css-propertyName-propertyValue"><a href="#jQuery-css-propertyName-propertyValue" class="headerlink" title="jQuery.css(propertyName[, propertyValue])"></a><code>jQuery.css(propertyName[, propertyValue])</code></h5><p>描述：获取匹配元素集合中的第一个元素的样式属性的值  或  设置每个匹配元素的一个CSS属性。</p>
<h5 id="jQuery-css-quot-propertyname-quot-quot-value-quot-quot-propertyname-quot-quot-value-quot"><a href="#jQuery-css-quot-propertyname-quot-quot-value-quot-quot-propertyname-quot-quot-value-quot" class="headerlink" title="jQuery.css({&quot;propertyname&quot;:&quot;value&quot;,&quot;propertyname&quot;:&quot;value&quot;,...})"></a><code>jQuery.css(&#123;&quot;propertyname&quot;:&quot;value&quot;,&quot;propertyname&quot;:&quot;value&quot;,...&#125;)</code></h5><p>描述：设置一个或多个css属性，使用json</p>
<h5 id="jQuery-addClass-className"><a href="#jQuery-addClass-className" class="headerlink" title="jQuery.addClass(className)"></a><code>jQuery.addClass(className)</code></h5><p>描述：为每个匹配的元素添加指定的样式类名</p>
<ul>
<li>对所有匹配的元素可以一次添加多个用空格隔开的样式类名 </li>
<li><code>$(&quot;p&quot;).addClass(&quot;myClass yourClass&quot;);</code></li>
</ul>
<h5 id="jQuery-attr"><a href="#jQuery-attr" class="headerlink" title="jQuery.attr()"></a><code>jQuery.attr()</code></h5><p>描述：设置元素的属性，使用方式类似于<code>.css()</code></p>
<h5 id="jQuery-each-function-index-Element"><a href="#jQuery-each-function-index-Element" class="headerlink" title="jQuery.each(function(index, Element))"></a><code>jQuery.each(function(index, Element))</code></h5><p>描述：遍历一个jQuery对象，为每个匹配元素执行一个函数。</p>
<h2 id="2020-03-27-14-55-29-星期五"><a href="#2020-03-27-14-55-29-星期五" class="headerlink" title="2020-03-27 14:55:29 星期五"></a>2020-03-27 14:55:29 星期五</h2><h4 id="jquery获取焦点和失去焦点事件"><a href="#jquery获取焦点和失去焦点事件" class="headerlink" title="jquery获取焦点和失去焦点事件"></a>jquery获取焦点和失去焦点事件</h4><h6 id="获得焦点事件-focus"><a href="#获得焦点事件-focus" class="headerlink" title="获得焦点事件 focus()"></a>获得焦点事件 <code>focus()</code></h6><p>当通过鼠标点击选中元素或通过tab键定位到元素时，该元素就会获得焦点。</p>
<ol>
<li><p>语法： <code>$(selector).focus()</code></p>
 <figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">&quot;text&quot;</span> <span class="attr">name</span>=<span class="string">&quot;&quot;</span> <span class="attr">id</span>=<span class="string">&quot;mochu&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    $(<span class="string">&#x27;#mochu&#x27;</span>).<span class="title function_">focus</span>(<span class="keyword">function</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        $(<span class="variable language_">this</span>).<span class="title function_">css</span>(<span class="string">&#x27;border-color&#x27;</span>,<span class="string">&#x27;red&#x27;</span>);</span></span><br><span class="line"><span class="language-javascript">    &#125;);</span></span><br><span class="line"><span class="language-javascript"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></figure>
</li>
</ol>
<h6 id="失去焦点事件-blur"><a href="#失去焦点事件-blur" class="headerlink" title="失去焦点事件 blur()"></a>失去焦点事件 <code>blur()</code></h6><p>当元素失去焦点时，发生blur事件。</p>
<ol>
<li><p>语法: <code>$(selector).blur()</code></p>
 <figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">&quot;text&quot;</span> <span class="attr">name</span>=<span class="string">&quot;&quot;</span> <span class="attr">id</span>=<span class="string">&quot;mochu&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    $(<span class="string">&#x27;#mochu&#x27;</span>).<span class="title function_">focus</span>(<span class="keyword">function</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        $(<span class="variable language_">this</span>).<span class="title function_">css</span>(<span class="string">&#x27;border-color&#x27;</span>,<span class="string">&#x27;red&#x27;</span>);</span></span><br><span class="line"><span class="language-javascript">    &#125;);</span></span><br><span class="line"><span class="language-javascript"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></figure>
</li>
</ol>
<h3 id="2020-04-02-14-26-07-星期四"><a href="#2020-04-02-14-26-07-星期四" class="headerlink" title="2020-04-02 14:26:07 星期四"></a>2020-04-02 14:26:07 星期四</h3><h4 id="select2使下拉选带有搜索功能"><a href="#select2使下拉选带有搜索功能" class="headerlink" title="select2使下拉选带有搜索功能"></a>select2使下拉选带有搜索功能</h4><h4 id="json对象按照key值进行排序"><a href="#json对象按照key值进行排序" class="headerlink" title="json对象按照key值进行排序"></a>json对象按照key值进行排序</h4><ul>
<li></li>
</ul>

    </div>

    
    
    
        

  <div class="followme">
    <p>欢迎关注我的其它发布渠道</p>

    <div class="social-list">

        <div class="social-item">
          <a target="_blank" class="social-link" href="/atom.xml">
            <span class="icon">
              <i class="fa fa-rss"></i>
            </span>

            <span class="label">RSS</span>
          </a>
        </div>
    </div>
  </div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/notebook/" rel="tag"># notebook</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/08/16/notebook-jqGrid/" rel="prev" title="notebook-jqGrid">
      <i class="fa fa-chevron-left"></i> notebook-jqGrid
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/08/16/notebook-java/" rel="next" title="notebook-java">
      notebook-java <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%9C%A8%E5%89%8D%E7%AB%AF%E7%95%8C%E9%9D%A2%E8%8E%B7%E5%8F%96file%E5%85%83%E7%B4%A0%E7%9A%84%E6%9C%AC%E5%9C%B0%E7%9C%9F%E5%AE%9E%E8%B7%AF%E5%BE%84%EF%BC%9F"><span class="nav-number">1.</span> <span class="nav-text">在前端界面获取file元素的本地真实路径？</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Wed-Oct-30-09-30-15-CST-2019"><span class="nav-number"></span> <span class="nav-text">Wed Oct 30 09:30:15 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%95%B0%E7%BB%84%E7%9A%84sort-%E6%98%AF%E6%8C%89%E7%85%A7%E4%BB%80%E4%B9%88%E8%BF%9B%E8%A1%8C%E6%8E%92%E5%BA%8F%E7%9A%84%EF%BC%9F"><span class="nav-number">1.</span> <span class="nav-text">数组的sort(),是按照什么进行排序的？</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Fri-Nov-8-17-07-49-CST-2019"><span class="nav-number"></span> <span class="nav-text">Fri Nov  8 17:07:49 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#FormData%E4%B8%80%E8%88%AC%E7%94%A8%E6%9D%A5%E4%BC%A0%E9%80%92%E6%96%87%E4%BB%B6%E6%B5%81%E7%9A%84%EF%BC%8C%E5%AE%83%E5%8F%AF%E4%BB%A5%E4%BC%A0%E9%80%92%E6%95%B0%E7%BB%84%E6%88%96%E8%80%85json%E6%A0%BC%E5%BC%8F%E7%9A%84%E6%95%B0%E6%8D%AE%E5%90%97%EF%BC%9F"><span class="nav-number">1.</span> <span class="nav-text">FormData一般用来传递文件流的，它可以传递数组或者json格式的数据吗？</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Tue-Nov-5-17-31-13-CST-2019"><span class="nav-number"></span> <span class="nav-text">Tue Nov  5 17:31:13 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#js%E4%B8%AD%E5%87%BD%E6%95%B0%E5%90%8D%E7%A7%B0%E4%B8%80%E6%A0%B7%EF%BC%8C%E5%8F%82%E6%95%B0%E4%B8%AA%E6%95%B0%E4%B8%8D%E4%B8%80%E6%A0%B7%E7%9A%84%E8%AF%9D%EF%BC%8C%E7%AE%97%E6%98%AF%E4%B8%8D%E4%B8%80%E6%A0%B7%E7%9A%84%E5%87%BD%E6%95%B0%E5%90%97%EF%BC%9F"><span class="nav-number">1.</span> <span class="nav-text">js中函数名称一样，参数个数不一样的话，算是不一样的函数吗？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%9C%A8html%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E4%B8%A4%E4%B8%AAjs%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E5%AD%98%E5%9C%A8%E5%90%8C%E5%90%8D%E7%9A%84%E5%87%BD%E6%95%B0%EF%BC%8C%E8%8B%A5%E5%85%88%E5%8A%A0%E8%BD%BDa-js%EF%BC%8C%E5%90%8E%E5%8A%A0%E8%BD%BDb-js-%E9%82%A3%E4%B9%88%E5%93%AA%E4%B8%AAjs%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E5%87%BD%E6%95%B0%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%9F"><span class="nav-number">2.</span> <span class="nav-text">在html文件中，两个js文件中，存在同名的函数，若先加载a.js，后加载b.js,那么哪个js文件中的函数起作用？</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Thu-Nov-21-15-40-34-CST-2019"><span class="nav-number"></span> <span class="nav-text">Thu Nov 21 15:40:34 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#jqgrid%E8%AE%BE%E7%BD%AE%E5%86%BB%E7%BB%93%E5%88%97"><span class="nav-number">1.</span> <span class="nav-text">jqgrid设置冻结列</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#2020-03-25-18-04-57-%E6%98%9F%E6%9C%9F%E4%B8%89"><span class="nav-number">1.1.</span> <span class="nav-text">2020-03-25 18:04:57 星期三</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery%E4%B8%ADtrigger%E7%9A%84%E4%BD%BF%E7%94%A8"><span class="nav-number">1.1.0.1.</span> <span class="nav-text">jQuery中trigger的使用</span></a></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2020-03-26-13-37-45-%E6%98%9F%E6%9C%9F%E5%9B%9B"><span class="nav-number">1.2.</span> <span class="nav-text">2020-03-26 13:37:45 星期四</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-extend-target-object1-objectN"><span class="nav-number">1.2.0.1.</span> <span class="nav-text">jQuery.extend(target[, object1][, objectN])</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-css-propertyName-propertyValue"><span class="nav-number">1.2.0.2.</span> <span class="nav-text">jQuery.css(propertyName[, propertyValue])</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-css-quot-propertyname-quot-quot-value-quot-quot-propertyname-quot-quot-value-quot"><span class="nav-number">1.2.0.3.</span> <span class="nav-text">jQuery.css({&quot;propertyname&quot;:&quot;value&quot;,&quot;propertyname&quot;:&quot;value&quot;,...})</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-addClass-className"><span class="nav-number">1.2.0.4.</span> <span class="nav-text">jQuery.addClass(className)</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-attr"><span class="nav-number">1.2.0.5.</span> <span class="nav-text">jQuery.attr()</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#jQuery-each-function-index-Element"><span class="nav-number">1.2.0.6.</span> <span class="nav-text">jQuery.each(function(index, Element))</span></a></li></ol></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2020-03-27-14-55-29-%E6%98%9F%E6%9C%9F%E4%BA%94"><span class="nav-number">2.</span> <span class="nav-text">2020-03-27 14:55:29 星期五</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#jquery%E8%8E%B7%E5%8F%96%E7%84%A6%E7%82%B9%E5%92%8C%E5%A4%B1%E5%8E%BB%E7%84%A6%E7%82%B9%E4%BA%8B%E4%BB%B6"><span class="nav-number">2.0.1.</span> <span class="nav-text">jquery获取焦点和失去焦点事件</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E8%8E%B7%E5%BE%97%E7%84%A6%E7%82%B9%E4%BA%8B%E4%BB%B6-focus"><span class="nav-number">2.0.1.0.1.</span> <span class="nav-text">获得焦点事件 focus()</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%A4%B1%E5%8E%BB%E7%84%A6%E7%82%B9%E4%BA%8B%E4%BB%B6-blur"><span class="nav-number">2.0.1.0.2.</span> <span class="nav-text">失去焦点事件 blur()</span></a></li></ol></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2020-04-02-14-26-07-%E6%98%9F%E6%9C%9F%E5%9B%9B"><span class="nav-number">2.1.</span> <span class="nav-text">2020-04-02 14:26:07 星期四</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#select2%E4%BD%BF%E4%B8%8B%E6%8B%89%E9%80%89%E5%B8%A6%E6%9C%89%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD"><span class="nav-number">2.1.1.</span> <span class="nav-text">select2使下拉选带有搜索功能</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#json%E5%AF%B9%E8%B1%A1%E6%8C%89%E7%85%A7key%E5%80%BC%E8%BF%9B%E8%A1%8C%E6%8E%92%E5%BA%8F"><span class="nav-number">2.1.2.</span> <span class="nav-text">json对象按照key值进行排序</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">田园隐士</p>
  <div class="site-description" itemprop="description">talk is cheap, show me the code</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">347</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">53</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">115</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">田园隐士</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">587k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">8:53</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

  

</body>
</html>
